package org.example.back.service.plan;

import org.example.back.entity.plan.FitnessVideo;
import org.example.back.mapper.plan.FitnessVideoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class FitnessVideoService {

    @Autowired
    private FitnessVideoMapper mapper;

    public void addVideo(FitnessVideo video) {
        mapper.insert(video);
    }

    public List<FitnessVideo> getAllVideos() {
        return mapper.selectAll();
    }
}